<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html">
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title></title>
</head>
<body erke-hide>
</body>
<script>
/**
 * @param {number[]} nums
 * @return {number}
 */
var findLengthOfLCIS = function(nums) {
    var maxLen=1;
    var arr=[];
    var len=1;
    var res;
    if(nums.length==0){
       return 0;  
    };
    for(var i=0;i<nums.length-1;i++){
    	arr.push(nums[i+1]-nums[i]);
    };
    console.log(arr);
    for(var i=0;i<arr.length;i++){
    	if(arr[i]>0){
    		len++;
    	}else{
    		if(len>maxLen){
    			maxLen=len;
    		};
    		len=1;
    	};
    };
    if(len>maxLen){
		maxLen=len;
	};
    console.log(maxLen);
    return maxLen;
};
var res=new findLengthOfLCIS([1,3,5,4,2,3,4,5]);
</script>
</html>